package net.tv90.bfmccore.slot;

import java.util.HashMap;

public class Grenade {
    public String Grenade = "AIR";
    public int GrenadeCount = 0;

    public Grenade() {
    }

    public Grenade(String Grenade, int GrenadeCount) {
        this.Grenade = Grenade;
        this.GrenadeCount = GrenadeCount;
    }

    public Grenade(HashMap<Object, Object> map) {
        this.Grenade = (String) map.get("Grenade");
        this.GrenadeCount = (int) map.get("GrenadeCount");
    }

    public String getGrenade() {
        return this.Grenade;
    }

    public int getGrenadeCount() {
        return this.GrenadeCount;
    }

    public void setGrenade(String Grenade, int GrenadeCount) {
        this.Grenade = Grenade;
        this.GrenadeCount = GrenadeCount;
    }

    public void setGrenadeCount(int GrenadeCount) {
        this.GrenadeCount = GrenadeCount;
    }

    public HashMap<Object, Object> toHashMap() {
        HashMap<Object, Object> map = new HashMap<>();
        map.put("Grenade", this.Grenade);
        map.put("GrenadeCount", this.GrenadeCount);
        return map;
    }
}
